package com.example.design.patterns.geekbang.创建型.工厂模式.DI框架;

import com.example.design.patterns.geekbang.创建型.工厂模式.DI框架.最小原先设计.RateLimiter;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Demo {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
                "beans.xml");
        RateLimiter rateLimiter = (RateLimiter) applicationContext.getBean("rateLimiter");
        rateLimiter.test();
        //...
    }
}
